[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetScreenAttr


Purpose   Returns the display attribute (colors) at a specific location on
          the screen.

Decln.    GetScreenAttr(X,Y:byte):byte;

Returns   Byte

Remarks   X, Y are the screen coordinates.

          The display color is returned as a combined foreground/background
          attribute.

Example

VAR
  OLDATT:BYTE
BEGIN
    OLDATT := GETSCREENATTR(1,1);
END;

The variable OldAtt is assigned the color attribute of the top left corner
of the display.

See Also: GetScreenChar
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson